package com.example.coroutinelearn.down_load_demo

import java.io.File

/**
 * @author huangzehui
 * @date 7/6/2024 下午11:32 周五
 * @description
 */
sealed class DownloadState {


    data class Progress(val progress: Int, val max: Int) : DownloadState()

    data class Error(val throwable: Throwable) : DownloadState()

    data class Done(val file: File) : DownloadState()
}